import request from '@/util/requestSuzhou'
export function getStatistics() {
	return request({
		url: '/getAllIndexCount',
		method: 'GET',
	})
}
/*
列表
*/
export function getNewsList(data) {
	return request({
		url: '/news/newsList',
		method: 'GET',
		data
	})
}
/*
 * @description 详情
 * @param data
 * @returns {Promise}
 */
export function getNewListDetail(data) {
	return request({
		url: '/news/getNewById',
		method: 'GET',
		data
	})
}
/**
 * @description 政策数据统计
 * @param data
 * @returns {Promise}
 */
export function addBrowseApi(data) {
	return request({
		url: '/addPolicyBrowse',
		method: 'GET',
		data
	})
}
/**
 * @description 问卷调查
 * @param data
 * @returns {Promise}
 */
export function editYouthJobInvestigate(data) {
	return request({
		url: '/editYouthJobInvestigate',
		method: 'POST',
		data
	})
}
/**
 * @description 问卷调查
 * @param data
 * @returns {Promise}
 */
export function addUserCount(data) {
	return request({
		url: '/jiuquan/userCount/addUserCount',
		method: 'POST',
		data
	})
}
/**
 * @description 查询是否已推送
 * @param data
 * @returns {Promise}
 */
export function getPushInfo(data) {
	return request({
		url: '/jiuquan/push/getPushInfo',
		method: 'GET',
		data
	})
}
/**
 * @description 首页推送已确认按钮
 * @param data
 * @returns {Promise}
 */
export function updatePopup(data) {
	return request({
		url: '/jiuquan/push/updatePopup',
		method: 'POST',
		data
	})
}
